<div class='panel'>
  <div class='header'>
    <span class='col_fade'>添加分类</span>
    <span class='col_right close'>x</span>
  </div>
  <div class='inner'>
    <form id='add_list_form' class='form-horizontal' action='/list/add' method='post'>
      <legend></legend>
      <div class='control-group'>
        <label class='control-label' for='name'>名字</label>
        <div class='controls'>
          <input class='input-xlarge' id='name' name='name' size='30' type='text' />
          <p class='help-block'>须为汉字和字母和数字组合</p>
        </div>
      </div>
      <div class='control-group'>
        <label class='control-label' for='tag'>标签</label>
        <div class='controls'>
          <select class='span2' name='tag'>
            <% locals.tags && tags.forEach(function(tag) { %>
            <option value='<%= tag._id %>'><%= tag.name %></option>
            <% }); %>
          </select>
          <p class='help-block'>选择分类的标签</p>
        </div>
      </div>
      <div class='control-group'>
        <label class='control-label' for='desc'>描述</label>
        <div class='controls'>
          <textarea class='input-xlarge' id='desc' name='desc' rows='4'></textarea>
        </div>
      </div>
      <input type='hidden' name='_csrf' value='<%= csrf %>' />
      <div class='form-actions'>
        <input type='submit' class='btn' value='添加' />
      </div>
    </form>
  </div>
</div>